home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December / PCWorld_2005-12_cd.bin / software / temacd / tiny / tpf-6[1].5.126.exe / Tiny Firewall 2005.msi / webui.dll / WS / WSN-EXCEPT.XSL < prev    next >
Encoding:
Extensible Markup Language  |  2005-08-17  |  4.3 KB  |  64 lines

  1.  ■<?xml version="1.0"?>
  2. <!--
  3. /*//////////////////////////////////////////////////////////////////////
  4. Filename:          wsn-except.xsl
  5. Company Name:      Computer Associates International, Inc.
  6. Legal Copyright: Copyright (c) Computer Associates International, Inc.
  7. Author:          Ales Novak
  8. Product:          Tiny Firewall
  9. Description:      Windows Security: lists all exceptions into a table
  10. Last Modification: August 31, 2004
  11. Revision History:
  12.    Created August 2004
  13. ///////////////////////////////////////////////////////////////////////*/
  14.  -->
  15.  
  16. <xsl:stylesheet version="1.0" 
  17.       xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  18.       xmlns:msxsl="urn:schemas-microsoft-com:xslt"
  19.       xmlns:tiny="http://tinysoftware.com/tinynamespace">
  20.       
  21.     <xsl:output method="html"/>
  22.     
  23.        <!-- instead of <xsl:include href="../common/tools.xsl"/> which does not work in res:// - needs to be added manually during xslt load in js -->
  24.     <xsl:variable name="INCLUDED_FILES">../common/tools.xsl</xsl:variable>
  25.      
  26.    
  27.    <!-- main template => sorts exceptions by groups and then by aplications alphabetically -->
  28.    <xsl:template match="/">
  29.            <xsl:text>new Array(</xsl:text>
  30.            <xsl:for-each select="/SecDb/ExceptionList/AppItem">
  31.                <xsl:sort select="not(@app = '*')"/>
  32.                <xsl:sort select="@app"/>
  33.                
  34.                <xsl:if test="position()>1">
  35.                    <xsl:text>,</xsl:text>
  36.                </xsl:if>
  37.                
  38.                <xsl:text>new Array('</xsl:text>
  39.                <xsl:call-template name="printJSText">
  40.                    <xsl:with-param name="string" select="@app"/>
  41.                </xsl:call-template>
  42.                <xsl:text>','</xsl:text>
  43.                <xsl:call-template name="printJSText">
  44.                    <xsl:with-param name="string" select="@app_id"/>
  45.                </xsl:call-template>
  46.                <xsl:text>','</xsl:text>
  47.                <xsl:value-of select="@priority"/>
  48.                <xsl:text>','</xsl:text>
  49.                <xsl:value-of select="@activeGuardsMask"/>
  50.                <xsl:text>','</xsl:text>
  51.                <xsl:value-of select="@account"/>
  52.                <xsl:text>','</xsl:text>
  53.                <xsl:value-of select="@filter"/>    
  54.                <xsl:text>')</xsl:text>
  55.                
  56.            </xsl:for-each>
  57.            <xsl:text>)</xsl:text>
  58.            
  59.    </xsl:template>
  60.    
  61. </xsl:stylesheet>